<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Ace Armor</title>
<!-- Start mesh.jsp-->



<script src="views/js/jquery/jquery.selectbox-0.5.js" type="text/javascript"></script>

<script src="views/js/mesh.js" type="text/javascript"></script>
<!-- End mesh.jsp-->

<script>


function newEdit(){
		if( $('#idVal').html()=="New"){
			$('#id').remove();
			}
		$("#EmpRegPage").submit();
		}
	
$(function(){
	$('#dob').datepicker();
	$('#doj').datepicker();
	$('#dol').datepicker();

	});
</script>
</head>
<body>
	<div class="iframe">
		<s:actionerror />
		<s:form method="post" theme="simple" id="EmpRegPage"
			action="AddEmpRegAction">
			<div id="login-holder ">
				<table class="floatRight center">
					<tr>
						<td>
							<table border="0" width="100%" cellpadding="0" cellspacing="0">
								<tr>
									<td>
										<div id="faded3">
										<div id="id">
										<s:hidden name="employee.id" ></s:hidden>
										<s:hidden name="employee.person.id" ></s:hidden>
										<s:hidden name="address.id" ></s:hidden>
										</div>
											
											<%@include file="EmpPersonDetails.jsp"%>
											<table class="floatRight">
												<tr>
													<th valign="middle" align="right"><font color="black"
														size="2" style="font: bold;">Employee Id : &nbsp;</font></th>
													<td>
														<!--<s:select list="salutationList"
																				headerValue="--Select" headerKey="-1" listKey="code"
																				listValue="value" cssClass="styledselect_form_1"
																				label="Salutation" labelSeparator=" :"></s:select> -->
														<s:textfield id="empid" name="employee.employeeId"
															cssClass="inp-form" required="true"></s:textfield></td>
												</tr>
												<tr>
													<th valign="middle" align="right"><font color="black"
														size="2" style="font: bold;">Office Email ID :
															&nbsp;</font></th>
													<td><s:textfield id="mname"
															name="employee.offcialEmail" cssClass="inp-form"
															required="true" /></td>
												</tr>
											</table>
											<table class="floatRight">
												<tr>
													<th valign="middle" align="right"><font color="black"
														size="2" style="font: bold;">Status : &nbsp;</font></th>
													<td><s:select list="statusList" name="employee.status"
															headerValue="--Select" headerKey="-1" listKey="code"
															listValue="value" cssClass="styledselect_form_1"
															labelSeparator=" :"></s:select></td>
												</tr>
												<tr>
													<th valign="middle" align="right"><font color="black"
														size="2" style="font: bold;">Shift Type : &nbsp;</font></th>
													<td><s:select list="shiftList" name="employee.shift"
															headerValue="--Select" headerKey="-1" listKey="code"
															listValue="value" cssClass="styledselect_form_1"
															labelSeparator=" :"></s:select></td>
												</tr>
												<tr>
													<th valign="middle" align="right"><font color="black"
														size="2" style="font: bold;">Manager ID : &nbsp;</font></th>
													<td><s:textfield id="fname"
															name="employee.employee.employeeId" cssClass="inp-form"
															required="true"></s:textfield>
													</td>
												</tr>
												<tr>
													<th valign="middle" align="right"><font color="black"
														size="2" style="font: bold;">Designation : &nbsp;</font></th>
													<td><s:textfield id="fname"
															name="employee.designation" cssClass="inp-form"
															required="true"></s:textfield>
													</td>
												</tr>
												<tr>
													<th valign="middle" align="right"><font color="black"
														size="2" style="font: bold;">Date of Joining :
															&nbsp;</font></th>
													<td><s:textfield id="doj"
															name="employee.dateOfJoining" cssClass="inp-form"
															required="true" /></td>
												</tr>
												<tr>
													<th valign="middle" align="right"><font color="black"
														size="2" style="font: bold;">Date of Leaving :
															&nbsp;</font></th>
													<td><s:textfield id="dol"
															name="employee.dateOfLeaving" cssClass="inp-form"
															required="true" /></td>
												</tr>
											</table>
										</div>
									</td>
									<td>
										<div id="faded3">
											<%@include file="EmpAddress.jsp"%>
											<!--<table class="floatRight">
																	<tr>
																		<td class="pad50px"><s:submit id="submit" javascriptTooltip="Submit"  action="addUser" cssClass="button_add"></s:submit> </td>
																	</tr>
																</table>
															-->
										</div></td>
								</tr>
							</table>
							<table border="0" width="100%" cellpadding="0" cellspacing="0">
								<tr align="center">
									<td class="pad50px centerAlign"><input type="button"
										id="submit"
										class="ui-button ui-widget ui-state-default ui-corner-all"
										value="Submit" onclick="newEdit();"></input></td>
								</tr>

							</table></td>
					</tr>
				</table>

			</div>
		</s:form>
	</div>
</body>
</html>



